/**
 * 
 */
package com.vanstone.imgapp.img.dal.object;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import com.vanstone.fs.weedfs.WeedFSFile;
import com.vanstone.imgapp.api.img.Image;

/**
 * @author shipeng <br />
 * 
 */
@Document(collection = "cms_article")
public class CmsArticleDO {

  @Id
  private Long id;
  private String title;
  private String brief;
  private WeedFSFile coverFile;
  private Date sysInsertTime;
  private long clickcount = 0;
  private Integer articleTypeCode;
  private List<Long> tagIDs = new ArrayList<>();
  private long commentcount = 0;
  private String collectSource;
  private String collectSourceMD5;
  private String pluginID;
  private List<Image> images = new ArrayList<>();
  private int imagecount = 0;
  private Long categoryId;

  public Long getCategoryId() {
    return categoryId;
  }

  public void setCategoryId(Long categoryId) {
    this.categoryId = categoryId;
  }

  public int getImagecount() {
    return imagecount;
  }

  public void setImagecount(int imagecount) {
    this.imagecount = imagecount;
  }

  public List<Image> getImages() {
    return images;
  }

  public void setImages(List<Image> images) {
    this.images = images;
  }

  public String getBrief() {
    return brief;
  }

  public void setBrief(String brief) {
    this.brief = brief;
  }

  public Long getId() {
    return id;
  }

  public void setId(Long id) {
    this.id = id;
  }

  public String getTitle() {
    return title;
  }

  public void setTitle(String title) {
    this.title = title;
  }

  public WeedFSFile getCoverFile() {
    return coverFile;
  }

  public void setCoverFile(WeedFSFile coverFile) {
    this.coverFile = coverFile;
  }

  public Date getSysInsertTime() {
    return sysInsertTime;
  }

  public void setSysInsertTime(Date sysInsertTime) {
    this.sysInsertTime = sysInsertTime;
  }

  public long getClickcount() {
    return clickcount;
  }

  public void setClickcount(long clickcount) {
    this.clickcount = clickcount;
  }

  public Integer getArticleTypeCode() {
    return articleTypeCode;
  }

  public void setArticleTypeCode(Integer articleTypeCode) {
    this.articleTypeCode = articleTypeCode;
  }

  public List<Long> getTagIDs() {
    return tagIDs;
  }

  public void setTagIDs(List<Long> tagIDs) {
    this.tagIDs = tagIDs;
  }

  public long getCommentcount() {
    return commentcount;
  }

  public void setCommentcount(long commentcount) {
    this.commentcount = commentcount;
  }

  public String getCollectSource() {
    return collectSource;
  }

  public void setCollectSource(String collectSource) {
    this.collectSource = collectSource;
  }

  public String getCollectSourceMD5() {
    return collectSourceMD5;
  }

  public void setCollectSourceMD5(String collectSourceMD5) {
    this.collectSourceMD5 = collectSourceMD5;
  }

  public String getPluginID() {
    return pluginID;
  }

  public void setPluginID(String pluginID) {
    this.pluginID = pluginID;
  }
}
